package com.aaa.stock.service;

import com.aaa.entity.stock.Stock;
import com.aaa.vo.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aaa
 * @since 2020-11-28
 */
public interface StockService extends IService<Stock> {
   public Stock selectStockByComBarOriLo(String commoditybar, String locatorcode, Long warehouseid);

   //根据仓库ID获取商品编码
   public List<String> selectCommoditybarByWarehouseid(Long warehouseid);
   //根据商品编码和仓库ID查询非入库区可用商品数量
   Integer selectSumUqtyByCommoditybar(String commoditybar, Long warehouseid);
   //根据商品编码和仓库ID查询非入库区库存
   List<Stock> selectStockByCommoditybar(String commoditybar, Long warehouseid);

    R searchStock(Integer page, Integer limit, Stock stock);

   List<Stock> selectStoCom();

   List<Stock> selectStockByHouse();

   Stock selectStockByCommodity(String locatorcode,String commoditybar);
}
